﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using VNet.VisiSuite.Common.Resource;
using VNet.VisiSuite.VisiBoard.BusinessLogic;
using VNet.VisiSuite.VisiBoard.Common.Helpers;
using VNet.VisiSuite.VisiBoard.Dal.EntityClasses;

namespace VNet.VisiSuite.VisiBoard.Models
{
    public class ScrapDialogModel : BaseModel
    {
        private static BusinessLogic.VisiBoard _visi_board = null;

        public ScrapDialogModel()
        {
            _visi_board = BusinessLogic.VisiBoard.instance();
        }

        public IEnumerable<dynamic> ProductionPlanData
        {
            get { return _visi_board.getProductionPlanData(); }
        }

        public IEnumerable<SimpleNode> ScrapReasonCodes
        {
            get { return LocalUtil.reasonCodes(_visi_board.AreaId, 0, true); }
        }

    }
}
